import request from '@/utils/request'

// 获取人员预警列表
export function getStaffWarnList(params) {
  return request({
    url: '/Warn/staff-warn-list',
    method: 'get',
    params
  })
}
// 获取人员预警列表
export function getStaffWarnSetDay(data) {
  return request({
    url: '/Warn/staff-warn-set-days',
    method: 'post',
    data
  })
}
// 获取人员预警总数
export function getStaffWarnTotal(params) {
  return request({
    url: '/Warn/staff-warn-total',
    method: 'get',
    params
  })
}

/*                 农残                         */
// 获取农残检测项目列表
export function getDetectWarnProject(params) {
  return request({
    url: '/Warn/detect-warn-project',
    method: 'get',
    params
  })
}
// 获取农残检测列表
export function getDetectWarnList(params) {
  return request({
    url: '/Warn/detect-warn-list',
    method: 'get',
    params
  })
}
// 获取农残检测总数
export function getDetectWarnTotal(params) {
  return request({
    url: '/Warn/detect-warn-total',
    method: 'get',
    params
  })
}
// 获取农残检测详情
export function getDetectWarnDetails(params) {
  return request({
    url: '/Warn/detect-warn-details',
    method: 'get',
    params
  })
}








// 再次发布预警
export function putYuJing(params) {
  return request({
    url: '/drugresidue/issueWarning',
    method: 'post',
    data: params
  })
}